﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Template.WinForm
{
    //public class SelectRecordFormColumncollection : List<SelectionRecordFormColumn>
    //{

    //    /// <summary>
    //    /// 将指定的字符串按照 name|90|sex|90|age|90 的规则进行智能解析。
    //    /// </summary>
    //    /// <param name="str"></param>
    //    public static implicit operator SelectRecordFormColumncollection(string str)
    //    {
    //        //例："name|100|sex|80|age|80"
    //        //例："name|sex|80|age|job"
    //        SelectRecordFormColumncollection collection = new SelectRecordFormColumncollection();
    //        return collection;
    //    }

    //    /// <summary>
    //    /// 将指定string数组转换为列集合。
    //    /// </summary>
    //    /// <param name="columns"></param>
    //    public static implicit operator SelectRecordFormColumncollection(string[] columns)
    //    {
    //        SelectRecordFormColumncollection collection = new SelectRecordFormColumncollection();
    //        foreach (var columnName in columns)
    //        {
    //            SelectionRecordFormColumn field = new SelectionRecordFormColumn(columnName, null);
    //            collection.Add(field);
    //        }
    //        return collection;
    //    }
    //}
}
